package com.example.messengerapp.ui


import android.content.Context
import com.example.messengerapp.viewmodel.AuthViewModel
import com.example.messengerapp.viewmodel.ChatListViewModel
import com.example.messengerapp.viewmodel.ChatViewModel
import com.example.messengerapp.viewmodel.EditProfileViewModel
import com.example.messengerapp.viewmodel.FullScreenImageViewModel
import com.example.messengerapp.viewmodel.ProfileViewModel
import org.koin.android.ext.koin.androidContext
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

val appModule = module {
    single { androidContext().getSharedPreferences("AppPreferences", Context.MODE_PRIVATE) }
    single { androidContext() }
    viewModel { ProfileViewModel() }
    viewModel { FullScreenImageViewModel() }
    viewModel { AuthViewModel() }
    viewModel { ChatViewModel() }
    viewModel { EditProfileViewModel() }
    viewModel { ChatListViewModel() }
}
